import request from "@/api/axios";

/**
 * 发送邮箱验证码
 * @param email
 * @returns {*}
 */
export const getCaptcha = (email) => {
    return request({
        method:'post',
        url:'/base/sendCaptcha',
        params:{
            email
        }
    })
}

/**
 * 批量上传图片
 * @param formDatas
 * @returns {Promise<AxiosResponse<any>>}
 */
export const uploadBatch = (formDatas) => {
    return request.post('/base/img/uploadBatch',
        formDatas,
        {'Content-Type': 'multipart/form-data'})
}
